<?php 	$vanban  = $this->vanban;
	
	$tenvb = $vanban->getTenvanban();
	$loaivanban = $vanban->getLoaivanban();
	$tenloai = $loaivanban->getTenLoai();
	$ngay = $vanban->getNgay();
	$ngaybanhanh = $vanban->getNgaybanhanh();
	
	$phongban = $vanban->getPhongban();
	$tenphongban = $phongban->getTenPhongban();
	
	$taptins = $vanban->getTaptin();
	foreach ($taptins as $taptin){
		$tentaptin = $taptin->getTentaptin();
	}
	
	$tentaptin = '<iframe src="' . $this->baseUrl('../public/docs/vanban/') . $tentaptin . '"width="650" height="700"></iframe>';
	?>
	<div id="main">
	<div id="block-center" style="position: relative;">
	<div class="header-brown">
	<div class="icon"></div>
	
	<div class="clr"></div>
	</div>
	<div class="block-content-1">
	<div id="products-detail">
	<h1 class="title"> CHI TIẾT VĂN BẢN</h1></div>
	<div class="clr"></div>
	</div>
	<div class="block-content-1">
	<div id="products-detail">
	<h1 class="title"><?php echo $tenvb;?></h1>
		<div>
		       	<div class="product-img"><?php echo $tentaptin;?> </div>
	                            
		</div>
		<div class="content">                                    
                                   <div class="row"><span class="bold">Loại văn bản: </span> <?php echo $tenloai;?></div>
                                    <div class="row"><span class="bold">Ngày ban hành:</span> <?php echo $ngaybanhanh;?></div>
                                     <div class="row"><span class="bold">Thuộc phòng :</span> <?php echo  $tenphongban;?></div>
                                    <div class="row"><span class="bold">Ngày nhận:</span> <?php echo $ngay;?></div>
        </div>
        </div>
        </div>
        </div>
        </div>
        
                                <?php echo $this->render('/vanban/nav/index.php');?>